package com.pxmeta.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@TableName("kt_order_evaluate")
@ApiModel(value = "订单评价表", description = "订单评价表")
@Data
public class OrderEvaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("被评论人id")
    private Long targetUserId;

    @ApiModelProperty("技能id")
    private Integer skillId;

    @ApiModelProperty(value = "用户订单id")
    private Long orderId;

    @ApiModelProperty(value = "是否满意")
    private Boolean isSatisfied;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "标签")
    private String tagIds;

    @ApiModelProperty("评价内容")
    private String content;

    @ApiModelProperty("是否匿名")
    private Boolean isAnonymous;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
